package com.lifeng.config;

import com.lifeng.filter.RequestCostTimesFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by lifeng on 2019/10/30.
 * 请求花费时间
 */
@Configuration
public class RequestCostTimesFilterConfig {

    @Bean
    public RequestCostTimesFilter requestCostTimesFilter(){
        /**自定义全局过滤器*/
        return new RequestCostTimesFilter();
    }
}
